//
//  UserDeleteApi.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/1/6.
//

#import "UserDeleteApi.h"

@implementation UserDeleteApi{
    NSString *_userId;
}

- (instancetype)initWithUserId:(NSString *)userId
{
    if (self = [super init])
    {
        _userId = userId;
    }
    
    return self;
}

- (NSString *)requestUrl {
    
    return @"user/del";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    NSString *token = [LocalData getToken];
    if (token.length) {
        params[@"token"] = token;
    }
    params[@"userId"] = _userId;
    
    return params;
}

@end
